package com.strategy.demo.Service;

import com.strategy.demo.model.Order;
import com.strategy.demo.model.PayResult;

/**
 * @Author Chill_Lyn
 * @Date 2021/4/30 10:25
 */
public interface PaymentService {

    /**
     * 提前校验是否支持支付
     * @param order
     * @return
     */
    boolean isSupport(Order order);

    /**
     * 支付
     */
    PayResult pay(Order order);
}
